﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Linq;
using System.Data;

using ECCIT;
using OgilvyOne.UKNow.IDAL;
using OgilvyOne.UKNow.DAL;
using OgilvyOne.UKNow.DALFactory;
using OgilvyOne.UKNow.Model;

namespace OgilvyOne.UKNow.BLL
{
    public class ArtFormBLL
    {
        public int LanguageID { get; set; }
        public ArtFormBLL(int langID)
        {
            this.LanguageID = langID;
        }

        public IList<ArtFormModel> SelectArtForms()
        {
            IDALArtForm use = DALFactory.ArtFormDALFactory.Create(LanguageID);
            return use.GetArtFormModels();
        }

        public ArtFormModel GetArtFormModelByID(int id)
        {
            return ArtFormDALFactory.Create(LanguageID).GetArtFormModelByID(id);
        }

        public IList<ArtFormModel> GetArtFormModels()
        {
            return ArtFormDALFactory.Create(LanguageID).GetArtFormModels();
        }

        /// <summary>
        /// 取My Profile 的修改信息
        /// </summary>
        /// <param name="memberid"></param>
        /// <param name="langId"></param>
        /// <returns></returns>
        public DataTable GetModifyMyProfile(int memberid,int langId)
        {
          return  DALFactory.ArtFormDALFactory.Create(langId).GetModifyMyProfile(memberid);
        }

    }
}
